package com.movie.service.impl;

import com.movie.service.AuthService;

public class AuthServiceImpl implements AuthService {

     @Override
     public String login(String username, String password) {
         if ("admin".equals(username) && "admin123".equals(password)) {
             return "admin";
         } else if ("user".equals(username) && "user123".equals(password)) {
             return "user";
         }else{
             return null;
         }
    }
}